package com.atguigu.controller;

import com.atguigu.result.RetVal;
import com.atguigu.service.BaseBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product")
public class ConcurrentController {

    @Autowired
    private BaseBrandService baseBrandService;

    @GetMapping("setNum")
    public RetVal setNum(){
        baseBrandService.setNum();
        return RetVal.ok();
    }

}
